package com.qhong.modules.mapper;

import com.baomidou.mybatisplus.annotations.SqlParser;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.qhong.modules.entity.User;
import java.util.List;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author qhong
 * @since 2018-07-25
 */
public interface UserMapper extends BaseMapper<User> {

	User selectByPrimaryKey(Integer id);

	int deleteAll();

	/**
	 * 注解 @SqlParser(filter = true) 过滤多租户解析
	 */
	@SqlParser(filter = true)
	@Select("select * from user")
	List<User> selectListBySQL();
}
